/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upeu.cepre.model;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Elvis Zangetsu
 */
@Entity
@Table(name = "detallealumnocurso")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Detallealumnocurso.findAll", query = "SELECT d FROM Detallealumnocurso d"),
    @NamedQuery(name = "Detallealumnocurso.findByIdDetalleAlumnoCurso", query = "SELECT d FROM Detallealumnocurso d WHERE d.idDetalleAlumnoCurso = :idDetalleAlumnoCurso"),
    @NamedQuery(name = "Detallealumnocurso.findByIdDetallePeriodoAlumno", query = "SELECT d FROM Detallealumnocurso d WHERE d.idDetallePeriodoAlumno = :idDetallePeriodoAlumno"),
    @NamedQuery(name = "Detallealumnocurso.findByIdDetallePeriodoCurso", query = "SELECT d FROM Detallealumnocurso d WHERE d.idDetallePeriodoCurso = :idDetallePeriodoCurso"),
    @NamedQuery(name = "Detallealumnocurso.findByNotaCurso", query = "SELECT d FROM Detallealumnocurso d WHERE d.notaCurso = :notaCurso")})
public class Detallealumnocurso implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idDetalleAlumnoCurso")
    private String idDetalleAlumnoCurso;
    @Column(name = "idDetallePeriodoAlumno")
    private String idDetallePeriodoAlumno;
    @Column(name = "idDetallePeriodoCurso")
    private String idDetallePeriodoCurso;
    @Column(name = "notaCurso")
    private String notaCurso;

    public Detallealumnocurso() {
    }

    public Detallealumnocurso(String idDetalleAlumnoCurso) {
        this.idDetalleAlumnoCurso = idDetalleAlumnoCurso;
    }

    public String getIdDetalleAlumnoCurso() {
        return idDetalleAlumnoCurso;
    }

    public void setIdDetalleAlumnoCurso(String idDetalleAlumnoCurso) {
        this.idDetalleAlumnoCurso = idDetalleAlumnoCurso;
    }

    public String getIdDetallePeriodoAlumno() {
        return idDetallePeriodoAlumno;
    }

    public void setIdDetallePeriodoAlumno(String idDetallePeriodoAlumno) {
        this.idDetallePeriodoAlumno = idDetallePeriodoAlumno;
    }

    public String getIdDetallePeriodoCurso() {
        return idDetallePeriodoCurso;
    }

    public void setIdDetallePeriodoCurso(String idDetallePeriodoCurso) {
        this.idDetallePeriodoCurso = idDetallePeriodoCurso;
    }

    public String getNotaCurso() {
        return notaCurso;
    }

    public void setNotaCurso(String notaCurso) {
        this.notaCurso = notaCurso;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idDetalleAlumnoCurso != null ? idDetalleAlumnoCurso.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Detallealumnocurso)) {
            return false;
        }
        Detallealumnocurso other = (Detallealumnocurso) object;
        if ((this.idDetalleAlumnoCurso == null && other.idDetalleAlumnoCurso != null) || (this.idDetalleAlumnoCurso != null && !this.idDetalleAlumnoCurso.equals(other.idDetalleAlumnoCurso))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "upeu.cepre.model.Detallealumnocurso[ idDetalleAlumnoCurso=" + idDetalleAlumnoCurso + " ]";
    }
    
}
